import configparser

import tkinter as tk
from tkinter import *
from tkinter import ttk

config = configparser.ConfigParser()
config.read('../../Config/config.ini')

def openGitPublishRelease():
    root = Tk()
    root.title("Unreal Project Developer Tools ( UPDT ) - Publish release")
    root.geometry("300x400")
    root.wm_minsize(300,300)
    root.wm_maxsize(300,500)

    frame = Frame(root, padx=10, pady=10)
    frame.pack(expand=True)
    
    engine_path = config.get('EngineInfo', 'engine_path')
    EnginePath_label = ttk.Label(frame, text="Engine path")
    EnginePath_label.grid(row=1, column=1)

    EnginePath_Entry = ttk.Entry(frame, width=40)
    EnginePath_Entry.insert(0, engine_path)
    EnginePath_Entry.grid(row=2, column=1)